﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    BuscarAreasComunes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
    <link rel="Stylesheet" type="text/css" media="screen" href="../../../Content/jPages.css" />
    <script src="../../../Scripts/jPages.js" type="text/javascript"></script>
    <script src="../../../Scripts/Validaciones.js" type="text/javascript"></script>
    <script src="../../../Scripts/AreaComun.js" type="text/javascript"></script>
    <link rel="Stylesheet" type="text/css" media="screen" href="../../../Content/Edificio.css" />
     

    <label for="Edificio">Edificio:</label>
    <select id="Edificio" onchange="cargarPisos()" class="text ui-widget-content ui-corner-all"></select><br></br>
                 
    <label for="Tipo">Tipo:</label>
    <select id="Tipo" class="text ui-widget-content ui-corner-all"></select><br></br>

    <label for="Pisito">Piso:</label>
    <select id="Pisito" class="text ui-widget-content ui-corner-all"></select><br></br>

    <label for="Ubicación">Ubicación:</label>
    <input type="text" id="Ubicacion" class="text ui-widget-content ui-corner-all"/><br></br>

    <label for="Reservable">Reservable:</label>
    <input name="Reservable" type="radio" value="1" style="width:auto;" class="text ui-widget-content ui-corner-all"/><label style="width:10px; text-align:left">Sí</label>
    <input name="Reservable" type="radio" value="2" style="width:auto;" class="text ui-widget-content ui-corner-all"/><label style="width:10px; text-align:left">No</label><br></br>

    <input type="submit" id = "botonBuscar" value="Buscar" class="submit-button" />
    <input type="submit" id = "botonCancelar" value="Cancelar" class="submit-button" />
    <input type="submit" onclick="refrescar()" id = "botonLimpiar" value="Limpiar" class="submit-button" /><br></br>
                    

    <div id = "tablaDinamica">
          
    </div>

    <div class="holder" id="holder"></div>

    <div><input id="ModificarBoton" type="submit" value="Modificar"/>

         <input id="EliminarBoton" type="submit" value="Eliminar"/></div>

    <div id="dialog-form" title="Modificar Área Común">
        <p class = "validateTips">Modifique los campos que crea necesarios</p>

        <fieldset>

        <label for="Edificio">Edificio: (*)</label>
        <select id="EdificioAreaComun" onchange="cargarPisosAreaComun()" class="text ui-widget-content ui-corner-all"></select><br></br>
                 
        <label for="Tipo">Tipo: (*)</label>
        <select id="TipoAreaComun" class="text ui-widget-content ui-corner-all"></select><br></br>

        <label for="Pisito">Piso: (*)</label>
        <select id="PisitoAreaComun" class="text ui-widget-content ui-corner-all"></select><br></br>

        <label for="Area">Área: (*)</label>
        <input type="text" id="AreaAreaComun" class="text ui-widget-content ui-corner-all" maxlength="18"/>
        <label id="errorArea" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label for="Ubicación">Ubicación:</label>
        <input type="text" id="UbicacionAreaComun" class="text ui-widget-content ui-corner-all" maxlength="50"/>
        <label id="errorUbicacion" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label for="Reservable">Reservable: (*)</label>
        <input name="ReservableAreaComun" type="radio" value="1" style="width:auto;" class="text ui-widget-content ui-corner-all"/><label style="width:10px; text-align:left">Sí</label>
        <input name="ReservableAreaComun" type="radio" value="2" style="width:auto;" class="text ui-widget-content ui-corner-all"/><label style="width:10px; text-align:left">No</label>
        <br></br>

        <input type="text" style="display:none" id="Id_Area_Comun" class="text ui-widget-content ui-corner-all" />

        </fieldset>
    </div>

</asp:Content>
